<!DOCTYPE html>
<html lang="pt-BR">
<head>
<link href="style/esquema.css" rel="stylesheet">
<meta charset="UTF-8">
<title>Wise-Car</title>
</head>

<body>
<div align="right" class="geral">
	<div id="content" align="center">
	<h1>Wise-Car</h1>
		<form action="valida.php"  method="post">
				<?php
				include ("seguranca.php");
				$query = "select * from funcionarios";
				$result = mysql_query($query);
				if (mysql_num_rows($result) == 0)
					header("Location: primeiroLogin.php");
				else
				{
					if (isset($_SESSION['usuarioLogin']))
						expulsaVisitante2();
					if (isset($_GET['pw']))
					{
						echo "<div style='color:red'>";
						echo "Usuário e/ou senha inválidos!";
						echo "</div>";
					}
				}
				?>
			<table align="center">
			<tr><td>Usuário: </td>
			<td><input type = "text" name = "usuario" required id = "usuarioID"></td></tr>
			<td>Senha: </td>
			<td><input type="password" name="senha" required id="senhaID"></td>
			<tr><td colspan="2" align="center"><input type="submit" value="Entrar"></tr>
			</table>
		</form>
	</div>
</div>
</body>
</html>


